#ifndef _PORTMANAGERTEST_H
#define _PORTMANAGERTEST_H

#include <cppunit/TestCase.h>
#include <cppunit/extensions/HelperMacros.h>

#include "PortManager.h"

class CPortManagerTestCase: public CppUnit::TestCase
{
  CPPUNIT_TEST_SUITE(CPortManagerTestCase);
    CPPUNIT_TEST(InitTest);
    CPPUNIT_TEST(GetPortTest);
    CPPUNIT_TEST(ReleasePortTest);
  CPPUNIT_TEST_SUITE_END();

  CConfig *m_conf;
  CPortManager *m_pman;
protected:
  void InitTest();
  void GetPortTest();
  void ReleasePortTest();
public:
  void setUp();
  void tearDown();
};

#endif

